package com.wuyoucar.common;

import java.io.Serializable;

public class ResultBean implements Serializable {

    private int code = 0; //默认0，表示请求成功

    private String msg = ""; //请求结果信息

    private Object data; //请求返回的结果集

    public ResultBean() {
    }

    public ResultBean(int code, String msg, Object data) {

        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public ResultBean(int code, String msg) {
       this(code,msg,null);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
